<?php //include 'models/Article';         ?>
<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of GAlert
 *
 * @author bach.le
 */
Yii::import('zii.widgets.CMenu');

class JSMenuWidget extends CMenu {

    /**
     * Initialize the widget
     */
    public function init() {
        parent::init();
    }

    public function run() {
        $assets = Yii::app()->getAssetManager()->publish(Yii::getPathOfAlias(
                        'ext.jsmenu') . '/assets/scripts');
        // Register extension assets
        $cs = Yii::app()->getClientScript();
        Yii::app()->clientScript->registerCoreScript('jquery');
        $cs->registerScriptFile($assets . '/jqueryslidemenu.js');
        $cs->registerCssFile($assets . '/jqueryslidemenu.css');
        parent::run();
    }

}

?>
